import React from 'react';
import { RouteObject } from 'react-router-dom';

const Home = () => (
  <div>
    <h1>首页</h1>
    <p>欢迎来到首页</p>
  </div>
);

const About = () => (
  <div>
    <h1>关于我们</h1>
    <p>这是关于我们的页面1</p>
  </div>
);

export const routes: RouteObject[] = [
  {
    path: '/',
    element: <Home />
  },
  {
    path: '/about',
    element: <About />
  }
];